package cn.wzl.tanks;

import java.io.IOException;
import java.util.Properties;

/**
 * @author weiZhiLin
 * @version 1.0
 * @date 2021/6/2 14:35
 */
// 配置文件管理
public class PropertyMrg {
    static Properties props = new Properties();

    static {
        try {
            props.load(PropertyMrg.class.getClassLoader().getResourceAsStream("config"));
        } catch (IOException e) {
            e.printStackTrace();
        }
    }

    public static Integer getIntegerValue(String key) {
        return Integer.valueOf((String)props.get(key));
    }
}
